/**
 * Created by berkbozkurt on 07/03/15.
 */
public class BrickFactory {

    public Brick createBrick(String brickType){
        if(brickType == null){
            return null;
        }
        if(brickType.equalsIgnoreCase("SOFT")){
            return new SoftBrick();
        } else if(brickType.equalsIgnoreCase("MEDIUM")){
            return new MediumBrick();
        } else if(brickType.equalsIgnoreCase("HARD")){
            return new HardBrick();
        }

        return null;
    }
}
